package com.china08.yxyapi.entity.mg.mistakes;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 *
 * 每个班级,每一个知识点 存储一条记录,</br>
 * 来源于yxy.tea.homework.task.report.know mongoDB中
 * 
 * @author Richard Wang
 *
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.mistakes.tea.know")
public class TeaMistakesKnow extends MongoBaseEntityNoId {

    /** 主键 班级id+ 知识点id */
    @Id
    private String id;

    /**
     * 班级id
     */
    @Field(value = "class_id")
    private String classId;

    /** 知识点:ID */
    @Indexed
    @Field(value = "know_id")
    private Integer knowId;

    /** 知识点:Name */
    @Field(value = "know_name")
    private String knowName;

    /**
     * 错误比率
     */
    @Field(value = "mistakes_rate")
    private Double mistakesRate = 0.0;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public Integer getKnowId() {
        return knowId;
    }

    public void setKnowId(Integer knowId) {
        this.knowId = knowId;
    }

    public String getKnowName() {
        return knowName;
    }

    public void setKnowName(String knowName) {
        this.knowName = knowName;
    }

    public Double getMistakesRate() {
        return mistakesRate;
    }

    public void setMistakesRate(Double mistakesRate) {
        this.mistakesRate = mistakesRate;
    }

}
